const SAVE_CURRENT_PAGE = 'save_current_page'
const SAVE_FOOT_CH = 'save_foot_ch'
const RECORD_VERSON = 'record_verson'

const state = {
  lang: 1,
  aboutBrief: ['集团简介', '分支机构', '发展历程', '企业文化'],
  zannueBrief: ['社会招聘', '校园招聘', '宣讲行程表', '招聘岗位', '投递方式及招聘流程'],
  tabName1: ['宣讲院校', '形式', '日期', '时间', '地点'],
  tabName2: ['招聘职位', '招聘部门', '招聘人数', '工作地点', '发布时间'],
  navList: ['首页', '关于我们', '新闻中心', '产品中心', '研发中心', '人才招聘', '联系我们'],
  homeLangList: ['产业介绍', '生产基地', '研究院', '关于我们', '发展历程', '最新资讯', '更多', '年', '人', '个', '亿', '家'],
  footList: {
    note: '注：本网站不发布毒性药品、麻醉药品、精神药品、放射性药品等信息！',
    msg: '官方微信',
    phone: '电话咨询热线:',
    record1: '©成都倍特药业集团版权所有 | 蜀ICP备15017352号 | 互联网药品信息服务资格证书：（川）-非经营性-2015-0067 ',
    record2: '蜀ICP备15017352号成都倍特药业集团版权所有'
  },
  staticText: ['联系我们', '社会招聘', '查看详情', '集团荣誉', '发展历程', '新品上市', '即将上市', '研发成果', '研发平台', '研发团队', '产品名称', '适应症', '产品优势', '人力资源电话', '邮箱', '地址'],
  wenhua: [
    {
      title: '企业使命',
      des: '让人人拥有健康，让生命更有活力！'
    },
    {
      title: '企业愿景',
      des: '赢得社会尊重与信赖，成就全球领先药企！'
    },
    {
      title: '经营理念',
      des: '专注于医药行业发展，专注于核心竞争力提升！'
    },
    {
      title: '管理理念',
      des: '文化聚人，制度管事'
    },
    {
      title: '质量方针',
      des: '每一道工序，都是在抢救我们自己的生命！'
    },
    {
      title: '品牌信念',
      des: '生命之美 未来可期！'
    },
    {
      title1: '企业文化',
      title2: '核心价值观',
      title3: '理念',
      title4: '团建活动'
    }
  ],
  yanfaList: {
    chengguo: ['目前我公司在研100余个优势品种', '近年来，公司坚持“仿创结合” 即通过“仿制打基础，创新求突破”的策略来推进新药研发, 重点聚焦围术期、抗生素、心脑血管和妇产科适应症等领域，逐步实现了从仿制药到创新药的飞跃，改变了公司原有以普药为主的产品结构。'],
    pingtai: ['集团先后已成立4家药物研究院，目前还有3家药物研发平台正在筹建中', '集团公司每年投入研发费用达到2亿元以上，重点聚焦围术期、抗感染、心脑血管、妇产科和呼吸适应症领域。通过不断加大对创新药、高端仿制药、高端制剂的研发，实现了从仿制药到创新药的飞跃，逐步形成了具备国际先进水平的高端吸入递送药物平台、特殊管制药物平台、创新药物和脂质体药物领域的核心竞争优势'],
    team: ['一支由国际顶尖级新药研发专家领军的600余人的研发创新团队', '倍特药业集团长期致力于创新和高技术内涵药物研究，构建了从立项到项目申报的完整研发体系。高度重视研发创新、高度重视人才引进是我们保持高速发展的动力和源泉。我们在全球范围内广泛招揽顶尖级专家人才，现已引进“国家千人计划”2名、“四川省千人计划”8名、“成都市人才计划”9名、归国专家13名。']
  },
  productIntroduce: ['通用名', '商品名', '医保信息', '药品剂型', '药品类别', '药品规格', '批准文号', '有效期', '联系电话', '药品介绍', '适应症', '注：本资料仅供医学药学专业人士阅读！']
}

const getters = {
  lang: (state) => state.lang,
  footList: (state) => state.footList,
  aboutBrief: (state) => state.aboutBrief,
  zannueBrief: (state) => state.zannueBrief,
  tabName1: (state) => state.tabName1,
  tabName2: (state) => state.tabName2,
  navList: (state) => state.navList,
  homeLangList: (state) => state.homeLangList,
  staticText: (state) => state.staticText,
  wenhua: (state) => state.wenhua,
  yanfaList: (state) => state.yanfaList,
  productIntroduce: (state) => state.productIntroduce
}

const mutations = {
  [SAVE_CURRENT_PAGE] (state, parame) {
    state.lang = parame
  },
  [RECORD_VERSON] (state, parame) {
    console.log(parame)
    state.lang = parame
    if (parame === 1) {
      state.footList = {
        note: '注：本网站不发布毒性药品、麻醉药品、精神药品、放射性药品等信息！',
        msg: '官方微信',
        phone: '电话咨询热线:',
        record1: '©成都倍特药业集团版权所有 | 蜀ICP备15017352号 | 互联网药品信息服务资格证书：（川）-非经营性-2015-0067 ',
        record2: '蜀ICP备15017352号成都倍特药业集团版权所有'
      }
      state.navList = ['首页', '关于我们', '新闻中心', '产品中心', '研发中心', '人才招聘', '联系我们']
      state.homeLangList = ['产业介绍', '生产基地', '研究院', '关于我们', '发展历程', '最新资讯', '更多', '年', '人', '个', '亿', '家']
      state.staticText = ['联系我们', '社会招聘', '查看详情', '集团荣誉', '发展历程', '新品上市', '即将上市', '研发成果', '研发平台', '研发团队', '产品名称', '适应症', '产品优势', '人力资源电话', '邮箱', '地址']
      state.aboutBrief = ['集团简介', '分支机构', '发展历程', '企业文化']
      state.zannueBrief = ['社会招聘', '校园招聘', '宣讲行程表', '招聘岗位', '投递方式及招聘流程']
      state.tabName1 = ['宣讲院校', '宣讲日期', '宣讲场地']
      state.tabName2 = ['招聘职位', '招聘部门', '招聘人数', '工作地点', '发布时间']
      state.wenhua = [
        {
          title: '企业使命',
          des: '让人人拥有健康，让生命更有活力！'
        },
        {
          title: '企业愿景',
          des: '赢得社会尊重与信赖，成就全球领先药企！'
        },
        {
          title: '经营理念',
          des: '专注于医药行业发展，专注于核心竞争力提升！'
        },
        {
          title: '管理理念',
          des: '文化聚人，制度管事'
        },
        {
          title: '质量方针',
          des: '每一道工序，都是在抢救我们自己的生命！'
        },
        {
          title: '品牌信念',
          des: '生命之美 未来可期！'
        },
        {
          title1: '企业文化',
          title2: '核心价值观',
          title3: '理念',
          title4: '团建活动'
        }
      ]
      state.yanfaList = {
        chengguo: ['目前我公司在研100余个优势品种', '近年来，公司坚持“仿创结合” 即通过“仿制打基础，创新求突破”的策略来推进新药研发, 重点聚焦围术期、抗生素、心脑血管和妇产科适应症等领域，逐步实现了从仿制药到创新药的飞跃，改变了公司原有以普药为主的产品结构。'],
        pingtai: ['集团先后已成立4家药物研究院，目前还有3家药物研发平台正在筹建中', '集团公司每年投入研发费用达到2亿元以上，重点聚焦围术期、抗感染、心脑血管、妇产科和呼吸适应症领域。通过不断加大对创新药、高端仿制药、高端制剂的研发，实现了从仿制药到创新药的飞跃，逐步形成了具备国际先进水平的高端吸入递送药物平台、特殊管制药物平台、创新药物和脂质体药物领域的核心竞争优势'],
        team: ['一支由国际顶尖级新药研发专家领军的600余人的研发创新团队', '倍特药业集团长期致力于创新和高技术内涵药物研究，构建了从立项到项目申报的完整研发体系。高度重视研发创新、高度重视人才引进是我们保持高速发展的动力和源泉。我们在全球范围内广泛招揽顶尖级专家人才，现已引进“国家千人计划”2名、“四川省千人计划”8名、“成都市人才计划”9名、归国专家13名。']
      }
      state.productIntroduce = ['通用名', '商品名', '医保信息', '药品剂型', '药品类别', '药品规格', '批准文号', '有效期', '联系电话', '药品介绍', '适应症', '注：本资料仅供医学药学专业人士阅读！']
    }
    if (parame === 2) {
      state.footList = {
        note: 'Note: Any information on toxic, narcotic, psychotropic and radioactive drugs shall not be published on this website.',
        msg: 'WeChat',
        phone: 'Hotline:',
        record1: '©Copyright Chengdu Brilliant Pharmaceutical Group | Shu ICP 15017352',
        record2: '蜀ICP备15017352号成都倍特药业集团版权所有'
      }
      state.navList = ['Home', 'About US', 'News', 'Products', 'R & D CENTER', 'Recruitment', 'Contact']
      state.homeLangList = ['PRODUCT-BRIEF', 'PRODUCTIONBASE', 'INSTITUTES', 'ABOUT-BT', 'DEVELOPMENT HISTORY', 'NEWS', 'MORE', 'year', 'man', 'num', 'mil', 'num']
      state.staticText = ['CONTACT US', 'SOCIETY RECRUIT', 'details', 'Group Honor', 'Development History', 'new arrival', 'Coming soon', 'development results', 'development platform', 'R & D Team', 'name', 'indication', 'advantage', 'Tel', 'Mailbox', 'Address']
      state.aboutBrief = ['Profile', 'Branches', 'History', 'Culture']
      state.zannueBrief = ['Social', 'Campus', 'Preaching schedule', 'Job recruitment', 'Delivery methods']
      state.tabName1 = ['Name', 'Data', 'Address']
      state.tabName2 = ['Job', 'Department', 'Number', 'Address', 'Time']
      state.wenhua = [
        {
          title: 'Corporate Mission',
          des: 'Let everyone have health,make life more energetic.'
        },
        {
          title: 'Corporate Vision',
          des: "Win the respect and trust of the society,become the world's leading pharmaceutical industry."
        },
        {
          title: 'Operation Principle',
          des: 'Focus on the development of the pharmaceutical industry,Focus on improvement of core competitiveness'
        },
        {
          title: 'Management Concept',
          des: 'Culture condense staffs,System manage work'
        },
        {
          title: 'Quality Policy',
          des: ' Every procedure is saving our own lives!'
        },
        {
          title: 'Brand Beliefs',
          des: 'The beauty of life can create a better future!'
        },
        {
          title1: 'Corporate Culture',
          title2: 'Core Values',
          title3: 'Ideas And Planning',
          title4: 'Team Building Activities'
        }
      ]
      state.yanfaList = {
        chengguo: ['At present, we are researching 100+ advantageous varieties.',
          'In recent years, we adhere to “combination of generic drugs and innovative drugs”, which means we push forward the R&D of new drugs through the strategy of “generic drugs lay the base and innovative drugs make breakthroughs.” The Company mainly focuses on the fields of perioperative period, antibiotics, cardiovascular and cerebrovascular, obstetrics and gynecology indications. The Company has achieved the leap from generic drugs to innovative drugs, and changed the original product structure of the whole group with general drugs in domination.'],
        pingtai: ['The Group has set up 4 drug research institutes and 3 more are under preparation.',
          'The annual investment on R&D is over RMB 200 million yuan, mainly focusing on the fields of perioperative period, anti-infection, cardiovascular and cerebrovascular, obstetrics and gynecology and respiratory indications. Through increasing and strengthening the R & D of innovative drugs, high-end generic drugs and high-end preparations, the Institute has achieved the leap from generic drugs to innovative drugs, and the core competitiveness has been gradually formed on platforms forhigh-end inhalation & delivery drugs and special regulated drugs, as well as fields of innovative drugs and liposome drugs with international advanced level.'],
        team: ['A R&D and innovation team of more than 600 members led by top international experts working on the research and development of new drugs',
          'Brilliant Pharmaceutical Group has been committed to innovating and researching high-content drugs, and has established a whole R&D system from project approval to application. The impetus and source for our rapid development are reflected in our premium placed on R&D innovation and brain gain. We have been recruiting top experts and talents on a global scale, and in such a manner have successfully brought in two experts via “National Thousand Talents Program”, 8 via “Sichuan Provincial Thousand Talents Program”, 9 via “Chengdu Municipal Talents Program”, and 13 returned overseas experts.']
      }
      state.productIntroduce = ['Common Name', 'Shop Name', 'information', 'Drug dosage form', 'Drug category', 'Drug specifications', 'Approval Number', 'Shelf Life', 'phone', 'Drugs introduc', 'Application certificate', 'Note: this information is only for medical professionals to read!']
    }
  }
}

const actions = {
  saveLang ({commit}, parame) {
    commit(SAVE_CURRENT_PAGE, parame)
  },
  saveFootCh ({commit}, parame) {
    commit(SAVE_FOOT_CH, parame)
  },
  recordVerson ({commit}, {type}) {
    commit(RECORD_VERSON, type)
  }
}

export default {
  state,
  getters,
  mutations,
  actions
}
